package ddn.anjuto.services;

import javax.annotation.Resource;

import ddn.dao.UserProfileDAO;
import ddn.dao.hibernate.pojo.UserProfile;

public class UserServiceImpl implements IUserService {

	private UserProfileDAO userProfileDAO;

	public UserProfileDAO getUserProfileDAO() {
		return userProfileDAO;
	}

	@Resource(name = "userProfileDAO")
	public void setUserProfileDAO(UserProfileDAO userProfileDAO) {
		this.userProfileDAO = userProfileDAO;
	}

	@Override
	public void registerUser(UserProfile up) throws Exception {
		userProfileDAO.save(up);
	}

}
